const mongoose = require("mongoose")

const usersSchema = new mongoose.Schema({
    userName: {
        type: String,
        required: true,
        unique:true
    },
    userPassword: {
        type: String,
        required: true
    },
    avatar:{
        type:String,
        required:true
    }
})

//创建文档对象，进行相关操作
const usersModel = mongoose.model("users",usersSchema)

module.exports = usersModel